package com.youwe.business.module;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.youwe.interfaces.bu.demo.BookService;
import com.youwe.interfaces.dao.demo.BookDao;
import com.youwe.model.demo.Book;

@Service
public class BookServiceImpl implements BookService {

	@Autowired
	private BookDao bookDao;
	
	public void addBook(Book book) {
		bookDao.addBook(book);		
	}

	public Book getBook(Book book) {		
		return bookDao.getBook(book);
	}

	public List<Book> getAllBook() {		
		return bookDao.getAllBook();
	}

}
